// import axios from 'axios';
import * as url from '../constants/api';
import req from '@/utils/request';

export function login(params) {
    return req({
        method: 'POST',
        url: url.LOGIN,
        data: params,
    });
}

export function getUserInfo() {
    return req({
        method: 'POST',
        url: url.PROFILE,
    });
}

//获取某个用户的基本信息
export function getUserDetailById(id) {
    return req({
        method: 'GET',
        url: 
    })
}


